package com.yungu.swift.assets.driver.service;

import com.yungu.swift.assets.driver.model.dto.DriverMessageDto;
import com.yungu.swift.assets.driver.model.param.AdminDriverMessageParam;
import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.model.api.ApiPageParam;
import com.yungu.swift.base.service.BaseService;

import java.util.List;
import java.util.Map;


/**
 * CommonDriverMessageService
 **/

public interface DriverMessageService extends BaseService<DriverMessageDto> {

    /**
     * 新增消息，实时推送
     *
     * @param driverMessageParam 参数
     * @return ResponseData
     */
    ResponseData<Boolean> saveAndSend(AdminDriverMessageParam driverMessageParam);

    /**
     * 消息撤回
     *
     * @param uuid 参数
     * @return ResponseData
     */
    ResponseData<Boolean> recall(String uuid);

    /**
     * 获取司机信息
     *
     * @param params    参数
     * @param pageParam 分页参数
     * @return List
     */
    ResponseData<List<DriverMessageDto>> queryDriMsgList(Map<String, Object> params, ApiPageParam pageParam);
}